/*
 * @Author: zouyanrong 466901787@qq.com
 * @Date: 2025-05-06 15:38:41
 * @LastEditors: zouyanrong 466901787@qq.com
 * @LastEditTime: 2025-05-06 15:41:19
 * @FilePath: \gj-vite-vue3-ts-pinia\src\utils\axios.js
 * @Description: 
 * 
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved. 
 */
 import axios, { AxiosResponse, AxiosRequestConfig } from 'axios';

 const service = axios.create();

 // Request interceptors
 service.interceptors.request.use(
     (config) => {
         // do something
         return config;
     },
     (error) => {
         Promise.reject(error);
     }
 );

 // Response interceptors
 service.interceptors.response.use(
     async (response) => {
         // do something
     },
     (error) => {
         // do something
         return Promise.reject(error);
     }
 );

 export default service;
